package com.thz.api;


import com.thz.api.pojo.dto.JudgeSubmitDTO;
import com.thz.api.pojo.vo.UserQuestionResultVO;
import com.thz.common.core.constants.Constants;
import com.thz.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description
 * @Author thz
 * @Date 2025/3/30
 */
@FeignClient(contextId = "RemoteJudgeService", value = Constants.JUDGE_SERVICE)
public interface RemoteJudgeService {

    @PostMapping("/judge/doJudgeJavaCode")
    Result<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);
}
